﻿@{
    ViewBag.Title = "Outbound Centre";
    Layout = "/views/shared/_HRLayout.cshtml";
}
@using KRM.Core
@model List<tblKRMWOutboundCentre>
<script src="/js/OutboundCentre.js"type="text/javascript"></script>

<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            Outbound Centre <small>Approve Customer Request</small>
        </h3>
        <!-- END PAGE TITLE & BREADCRUMB-->
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="icon-home"></i>
                <a href="/Home">Home</a> 
                <span class="icon-angle-right"></span>
            </li>
            <li>
                <a href="#">Outbound Centre</a>
                <span class="icon-angle-right"></span>
            </li>
            <li>
                <a href="/OutboundCentre/">Customer Request</a>
            </li>
        </ul>
    </div>
</div>
<div class="row" id="CustomerRequestGroupModal">
    <div id="ApproveModal" class="modal fade" tabindex="-1" data-width="800">
        <div style="height: 500px">
             <div style="height: 220px"></div>
             <div class="ajax-loading"></div>
        </div>
    </div>
    <div id="ViewDetail" class="modal fade" tabindex="-1" data-width="900">
        <div style="height: 500px" >
                <div style="height: 220px"></div>
                <div class="ajax-loading"></div>
        </div>
    </div>
</div>
<div class="row" >
    <form class="form-horizontal col-md-12" id="frFilterOutboundCentre" action="/OutboundCentre/CustomerRequest" method="GET">
        <input type="hidden" id='dttb_activepage' name="p" value="@(Request["p"]??"1")"/>
    <div class="form-group" >
        <div class="col-md-3">
            <div class="row" >
                <label class="control-label col-md-3">Type:</label>
                <div class="col-md-9">
                    @Html.DropDownList("TypeId",null,new {@class="form-control",onchange="$('#frFilterOutboundCentre').submit()"})
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="row" >
                <label class="control-label col-md-3">Status:</label>
                <div class="col-md-9">
                    @Html.DropDownList("StatusId",null,new {@class="form-control",onchange="$('#frFilterOutboundCentre').submit()"})
                </div>
            </div>
        </div>

        <div class="col-md-6">
            <div class="row"> 
                <label class="control-label col-md-1">From:</label>
                <div class="input-icon col-md-4">
                    <i class="icon-calendar"></i>
                    <input name="from" class="form-control date-picker" size="16" type="text" value="@(ViewBag.From.ToString("MM/dd/yyyy"))" data-date="12/14/2013" data-date-format="mm/dd/yyyy" data-date-viewmode="years">
                </div>
                <label class="control-label col-md-1">To:</label>
                <div class="input-icon col-md-3">
                    <i class="icon-calendar"></i>
                    <input name="to" class="form-control date-picker" style="min-width: 125px;"size="16" type="text" value="@ViewBag.To.ToString("MM/dd/yyyy")" data-date="12/14/2013" data-date-format="mm/dd/yyyy" data-date-viewmode="years">
                </div>
                <div class="col-md-3">
                    <button type="submit" class="btn green">Show <i class="m-icon-swapright m-icon-white"></i></button> </div>    
            </div>
        </div>
    </div>
    </form>
</div>
  <div class="row"> 
      <div class="col-md-12" id="msg-ListRequest-content">
          @Html.Partial("Partial/_MessageResult")
      </div> 
</div>
<div class="row" >
@switch ((int)ViewBag.SelectedTypeId) {
    case (int) WOutboundCentreTypes.CustomerCallbacks: @Html.Partial("_LstCallBackRequest");
        break;
    case (int) WOutboundCentreTypes.FailedPayments: @Html.Partial("_lstFailedPayments");
        break;
            case (int) WOutboundCentreTypes.AbandonBaskets: @Html.Partial("_LstAbandonBaskets");
        break;
            case (int) WOutboundCentreTypes.PriceMatchForms: @Html.Partial("_LstPriceMatch");
        break;
}

</div>
